<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML-editor</title>
 <style type="text/css" media="screen">
  
    
.editor { 
        margin: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
  </style>
<script src="lib/ace/dist/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ace/dist/theme-twilight.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ace/dist/mode-javascript.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<pre id="javascript" class="editor"></pre>

<script>
var javascript;
window.onload = function() {
    javascript = ace.edit("javascript");
    javascript.setTheme("ace/theme/twilight");
    javascript.setFontSize("16px");
};

function getJavascript() {
	return javascript.getSession();
}
</script>
</body>
</html>